﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Item.Master" AutoEventWireup="true"
    CodeBehind="RoleItem.aspx.cs" Inherits="SGDemo.Permission.RoleItem" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cpHeader" runat="server">
    <script src="RoleItem.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpBody" runat="server">
    <div class="ui-menu">
        <uc:Menu ID="menu1" runat="server" DataFile="../Views/Permission/Menu/RoleItem.xml"
            PageCode="RoleItem" />
    </div>
    <div class="ui-wrapper">
        <div class="ui-hidden">
            <dx:ASPxLabel ID="lblKeyid" ClientInstanceName="lblKeyid" runat="server" />
        </div>
        <ul class="ui-list">
            <li>
                <dx:ASPxLabel ID="lblRoleCode" runat="server" Text="岗位编码：" ForeColor="Red" AssociatedControlID="txtRoleCode" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtRoleCode" ClientInstanceName="txtRoleCode" runat="server"
                    Width="120px">
                    <ValidationSettings>
                        <RequiredField IsRequired="true" ErrorText="岗位编码必须填写" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </li>
            <li>
                <dx:ASPxLabel ID="lblRoleName" runat="server" Text="岗位名称：" ForeColor="Red" AssociatedControlID="txtRoleName" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtRoleName" ClientInstanceName="txtRoleName" runat="server"
                    Width="120px">
                    <ValidationSettings>
                        <RequiredField IsRequired="true" ErrorText="岗位名称必须填写" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </li>
            <li>
                <dx:ASPxLabel ID="lblRoleNameEn" runat="server" Text="岗位英文名称：" AssociatedControlID="txtRoleNameEn" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtRoleNameEn" ClientInstanceName="txtRoleNameEn" runat="server"
                    Width="120px">
                </dx:ASPxTextBox>
            </li>
            <li>
                <dx:ASPxLabel ID="lblHelpCode" runat="server" Text="助记码：" AssociatedControlID="txtHelpCode" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtHelpCode" ClientInstanceName="txtHelpCode" runat="server"
                    Width="120px">
                </dx:ASPxTextBox>
            </li>
        </ul>
        <ul class="ui-list">
            <li>
                <dx:ASPxLabel ID="lblRrade" runat="server" Text="等级：" ForeColor="Red" AssociatedControlID="cbGrade" />
            </li>
            <li>
                <dx:ASPxComboBox ID="cbGrade" ClientInstanceName="cbGrade" runat="server" Width="120">
                    <Items>
                        <dx:ListEditItem Text="一级" Value="1" />
                        <dx:ListEditItem Text="二级" Value="2" />
                        <dx:ListEditItem Text="三级" Value="3" />
                        <dx:ListEditItem Text="四级" Value="4" />
                        <dx:ListEditItem Text="五级" Value="5" />
                        <dx:ListEditItem Text="六级" Value="6" />
                    </Items>
                    <ValidationSettings>
                        <RequiredField IsRequired="true" ErrorText="岗位名称必须填写" />
                    </ValidationSettings>
                </dx:ASPxComboBox>
            </li>
            <li>
                <dx:ASPxLabel ID="lblRemark" runat="server" Text="备注：" AssociatedControlID="txtRemark" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtRemark" ClientInstanceName="txtRemark" runat="server" Width="340px">
                </dx:ASPxTextBox>
            </li>
            <li></li>
            <li></li>
        </ul>
        <ul class="ui-list " id="diss">
            <li>
                <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="拥有的模块：" AssociatedControlID="txtComment" />
            </li>
            <li>
               <dx:ASPxListBox ID="lbmodule" runat="server" SelectionMode="Single" Width="340" Height="150px"
                    ClientInstanceName="lbmodule" ValueField="Keyid" OnCallback="module_OnCallback" ValueType="System.String">
                    <Columns>
                        <dx:ListBoxColumn FieldName="ModuleName" Caption="模块名称" Width="60px" />
                        <dx:ListBoxColumn FieldName="ModuleCode" Caption="模块编号" Width="60px" />
                    </Columns>
                </dx:ASPxListBox>
            </li>
        </ul>
        <div class="ui-validation">
            <dx:ASPxValidationSummary ID="vsSummary" runat="server" RenderMode="BulletedList"
                Width="100%" ClientInstanceName="validationSummary" ShowErrorsInEditors="false"
                ShowErrorAsLink="true">
            </dx:ASPxValidationSummary>
        </div>
        <ul class="sl-floatcenter clearfix ui-btn-bottom ui-btn-saveforadd">
            <li class="sl-floatcenter-item">
                <dx:ASPxButton ID="btnSaveToAdd" ClientInstanceName="btnSaveToAdd" runat="server"
                    Text="保 存" AutoPostBack="false">
                    <ClientSideEvents Click="doSaveForAdd" />
                </dx:ASPxButton>
            </li>
            <li class="sl-floatcenter-item">
                <dx:ASPxButton ID="btnSaveAndContinueToAdd" ClientInstanceName="btnSaveAndContinueToAdd"
                    runat="server" Text="保存完继续新增" AutoPostBack="false">
                    <ClientSideEvents Click="doSaveAndContinueToAdd" />
                </dx:ASPxButton>
            </li>
            <li class="sl-floatcenter-item">
                <dx:ASPxButton ID="btnResetForAdd" ClientInstanceName="btnResetForAdd" runat="server"
                    Text="重 置" AutoPostBack="false">
                    <ClientSideEvents Click="doResetForAdd" />
                </dx:ASPxButton>
            </li>
        </ul>
        <ul class="sl-floatcenter clearfix ui-btn-bottom ui-btn-saveforedit">
            <li class="sl-floatcenter-item">
                <dx:ASPxButton ID="btnSaveToEdit" ClientInstanceName="btnSaveToEdit" runat="server"
                    Text="保 存" AutoPostBack="false">
                    <ClientSideEvents Click="doSaveForEdit" />
                </dx:ASPxButton>
            </li>
            <li class="sl-floatcenter-item">
                <dx:ASPxButton ID="btnCancelForEdit" ClientInstanceName="btnCancelForEdit" runat="server"
                    Text="取 消" AutoPostBack="false">
                    <ClientSideEvents Click="doCancelForEdit" />
                </dx:ASPxButton>
            </li>
        </ul>
    </div>
    <div class="ui-state">
        <ul>
            <li>创建人： </li>
            <li>
                <dx:ASPxLabel ID="lblCreateName" ClientInstanceName="lblCreateName" runat="server" />
            </li>
            <li class="ui-state-seperator">| </li>
            <li>创建日期： </li>
            <li>
                <dx:ASPxLabel ID="lblCreateDate" ClientInstanceName="lblCreateDate" runat="server" />
            </li>
            <li class="ui-state-seperator">| </li>
            <li>编辑人： </li>
            <li>
                <dx:ASPxLabel ID="lblModifyName" ClientInstanceName="lblModifyName" runat="server" />
            </li>
            <li class="ui-state-seperator">| </li>
            <li>编辑日期： </li>
            <li>
                <dx:ASPxLabel ID="lblModifyDate" ClientInstanceName="lblModifyDate" runat="server" />
            </li>
        </ul>
    </div>
</asp:Content>
